package com.zhb.cloud.mail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhb.cloud.mail.model.EmailLog;
import com.zhb.cloud.mail.repository.EmailLogRepository;
import com.zhb.cloud.mail.service.EmailLogService;

/**
 * @ClassName: EmailLogServiceImpl
 * @author: zhb
 * @date: 2017年11月22日 下午10:33:49
 * @Description: 邮件日志记录
 */
@Service
public class EmailLogServiceImpl implements EmailLogService {
	@Autowired
	private EmailLogRepository logRepository;

	@Override
	public void insert(EmailLog emailLog) {
		logRepository.insert(emailLog);
	}

	@Override
	public void batchInsert(List<EmailLog> logs) {
		logRepository.insert(logs);
	}

}
